package com.lysj.bhp.borrowing.controller;

import com.lysj.bhp.borrowing.base.BorrowingContent;
import com.lysj.bhp.borrowing.domain.BorrowingInstallment;
import com.lysj.bhp.borrowing.vo.OverdueUserVo;
import com.lysj.bhp.util.random.FormatUtil;
import com.lysj.bhp.util.web.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/8/21--13:27
 * @Description:借贷分期控制类
 */
@RestController
@RequestMapping("admin/borrowing_installment")
public class BorrowingInstallmentController extends BorrowingContent {
    @RequestMapping("/show_borrowing_installment")
    public Resp showBorrowingInstallment(Long borrowingRecordId) {
        return new Resp(borrowingInstallmentRepository.findByBorrowingRecordIdOrderByNperAsc(borrowingRecordId));
    }
}
